<!-- Module Body -->
<div class="row">
  <div class="col-md-12">
      <div id="details-header">
      <table>
        <tr>
          <td><span class="h3">AFP Service&nbsp;&nbsp;&nbsp;</span></td>
          <td>
              <input type="checkbox" name="afp-service-checkbox" data-size="mini">
          </td>
        </tr>
      </table>
    </div>
    <div id="afp-warning" class="alert alert-warning" style="display:none">
    	<strong>Warning! AFP Service is not running</strong>. Clients won't be able to mount unless AFP is running.
    </div>
    <div class="messages"></div>
    <!-- Content -->
    {{#if collectionNotEmpty}}
      <table id="afp-exports-table" class="table table-bordered table-striped share-table data-table" width="100%" summary="List of afp exports">
        <thead>
          <tr>
            <th scope="col" abbr="Share name">Share</th>
            <th scope="col" abbr="Time Machine">Time Machine</th>
            <th scope="col" abbr="Actions">Actions</th>
          </tr>
        </thead>
        <tbody>
          {{#each afpShare}}
            <tr>
                <td>{{this.share}}</td>
                <td>{{this.time_machine}}</td>
                <td><a href="#afp/edit/{{this.id}}"><i class="glyphicon glyphicon-pencil"></i></a>&nbsp;
                <a href="#" class="delete-afp-share" data-share="{{this.share}}" data-id="{{this.id}}">
                <i class="glyphicon glyphicon-trash"></i></a>
                </td>
            </tr>
          {{/each}}
        </tbody>
      </table>
      {{else}}
      <table id="afp-exports-table" class="table table-condensed table-bordered table-hover table-striped share-table tablesorter" width="100%" summary="List of afp exports">
        <tbody>
          <tr>
            <td colspan="5">
              <h4>No afp exports have been created</h4>
            </td>
          </tr>
        </tbody>
      </table>
    {{/if}}

    {{#if sharesNotEmpty}}
      <a href="#add-afp-share" id="add-afp-share" class="btn btn-primary"><i class="glyphicon glyphicon-edit "></i> Add afp Export</a>
    {{else}}
      <a href="#add-afp-share" id="add-afp-share" class="btn btn-primary disabled" title="No shares available to export through afp"><i class="glyphicon glyphicon-edit "></i> Add afp Export</a>
    {{/if}}
  </div>
</div>
